<?php
namespace app\api\controller\v1;
use app\api\controller\Common;

class Lunbo extends Common{
	var $modelDb;
	public function _initialize(){
		parent::_initialize();
		$this->modelDb = model("Lunbo");
	}
	public function index(){
		$data = $this->modelDb->list_data($this->postData, 0, 0, 'thumb, linkurl');
		foreach ($data as $key => $value) {
			  $value['linkurl'] = '#';
		}
    	if($data){
    		return $this->app_success($data);
    	}
    	else{
    		return $this->app_error("获取失败");
    	}
	}
}